Configuring FTP Logging
FTP
7 can automatically create log files that keep track of the activity of
the FTP site. By default, information is stored to text files stored in
the %SystemDrive%\Inetpub\Logs\LogFiles
folder. Separate folders are created for each FTP site created on the
local machine. You can use the FTP Logging option to modify the log file
settings.
The Select W3C Fields
command enables you to specify which types of information are tracked
for each command or request sent to the FTP server. Figure 30
shows the default options, which are designed to provide a balance
between providing detailed information and reducing performance overhead
and log file size.
You can use the Log File
Rollover section to specify when new log files will be created. You can
also enable the Use Local Time For File Naming And Rollover option if
you are managing FTP servers in multiple time zones. The View Logs
command in the Actions pane will open the folder that contains the FTP
log files. The files themselves are text documents that contain
comma-separated values. They can be viewed in Windows Notepad or by
using third-party log analysis software. In general, it is a good idea
to review FTP server logs regularly to detect any unauthorized activity
or unexpected usage patterns.
Configuring Directory Browsing
One of the most commonly used commands sent by FTP clients is to request
a directory listing. Most FTP client software programs will
automatically execute a LIST
command whenever the user changes the current working folder. You can
configure these options by selecting the FTP Directory Browsing feature
after selecting a site in IIS Manager. (See Figure 31.) The
Directory Listing Style options enable you to specify whether
information should be returned in MS-DOS (the default style) or UNIX
style. The setting specifies how information is presented to an FTP
client. Most FTP clients are able to handle both formats.
You can use the
Directory Listing Options section to specify which types of information
are included in the directory listing. The Virtual Directories option
specifies whether the names of virtual directories will be returned to
the user. If you want to hide virtual directories from users, disable
this option. The Available Bytes option returns the amount of remaining
disk space for the FTP site. If disk quotas are enabled, the remaining
space will be based on how much storage space is left for the currently
connected user. Enabling Four-Digit Years will return all year
information in four characters rather than in two.